export const getToken = () => {
  const user = window.localStorage.getItem('userInfo')
  return user ? JSON.parse(user).token : ''
}

export const getUserInfo = () => {
  const user = window.localStorage.getItem('userInfo')
  return user ? JSON.parse(user) : {}
}
